package com.azzcs.session;

import java.util.List;

/**
 * @Author: wzg
 * @Date: 2020/12/6 上午10:51
 */
public interface SqlSession {
    <T> T selectOne(String statementId,Object... param) throws Exception;

    <T> List<T> selectList(String statementId, Object... param) throws Exception;

    int insert(String statement, Object... parameter) throws Exception;

    int update(String statement, Object... parameter) throws Exception;

    int delete(String statement, Object... parameter) throws Exception;

    <T> T getMapper(Class clazz);
}
